package csc.daonjpa.java.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 * Entity class for Account table. This is a simple POJO class with annotations to define mapping with DB table
 * @author nvu3
 *
 */
@Entity
@Table(name="transaction")
public class Transaction implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name = "idtransaction")
	private String idtransaction;
	
	@Column(name = "accountNumberSource")
	private String accountNumberSource;
	
	@Column(name = "accountNumberTarget")
	private String accountNumberTarget;
	
	@Column(name="targetBank")
	private String targetBank;
	
	@Column(name="targetBranch")
	private String targetBranch;
	
	@Column(name="amount")
	private String amount;

	@Column(name="date")
	private Date date;
	
	@Column(name="loginIdSource")
	private String loginIdSource;
	
	@Column(name="loginIdTarget")
	private String loginIdTarget;
	/**
	 * Required constructor
	 */
	public Transaction() {
	
	}

	public Transaction(String accountNumberSource, String accountNumberTarget,
			String targetBank, String targetBranch, String amount, Date date,
			String loginIdSource, String loginIdTarget) {
		super();
		this.accountNumberSource = accountNumberSource;
		this.accountNumberTarget = accountNumberTarget;
		this.targetBank = targetBank;
		this.targetBranch = targetBranch;
		this.amount = amount;
		this.date = date;
		this.loginIdSource = loginIdSource;
		this.loginIdTarget = loginIdTarget;
	}

	public String getLoginIdSource() {
		return loginIdSource;
	}

	public void setLoginIdSource(String loginIdSource) {
		this.loginIdSource = loginIdSource;
	}

	public String getLoginIdTarget() {
		return loginIdTarget;
	}

	public void setLoginIdTarget(String loginIdTarget) {
		this.loginIdTarget = loginIdTarget;
	}

	public String getIdtransaction() {
		return idtransaction;
	}
	public void setIdtransaction(String idtransaction) {
		this.idtransaction = idtransaction;
	}
	public String getAccountNumberSource() {
		return accountNumberSource;
	}
	public void setAccountNumberSource(String accountNumberSource) {
		this.accountNumberSource = accountNumberSource;
	}
	public String getAccountNumberTarget() {
		return accountNumberTarget;
	}
	public void setAccountNumberTarget(String accountNumberTarget) {
		this.accountNumberTarget = accountNumberTarget;
	}
	public String getTargetBank() {
		return targetBank;
	}
	public void setTargetBank(String targetBank) {
		this.targetBank = targetBank;
	}
	public String getTargetBranch() {
		return targetBranch;
	}
	public void setTargetBranch(String targetBranch) {
		this.targetBranch = targetBranch;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
}